<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="images/skin.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		
		<script language="javascript" type="text/javascript" src="datepicker/WdatePicker.js"></script>
		<style type="text/css">
		<!--
			body {
				margin-left: 0px;
				margin-top: 0px;
				margin-right: 0px;
				margin-bottom: 0px;
				background-color: #EEF2FB;
			}
			 
			.contentTable,.contentTable td,.contentTable th,  {   
			    border:1px solid #cccccc;   
			    border-collapse:collapse;  
			}   
		
		-->
		</style>
		<script type="text/javascript">
		function ExportExcel(theform)
		{
			if (theform.startTime.value=='')	{
			    alert("开始时间不能为空，请选择！");
			    theform.startTime.focus();
			    return (false);
			  }
			if (theform.endTime.value=='')	{
			    alert("结束时间不能为空，请选择！");
			    theform.endTime.focus();
			    return (false);
			  }
			if (theform.name.value==-1)	{
			    alert("请选择要查询的人员名称！");
			    theform.num.focus();
			    return (false);
			  }
			if (theform.endTime.value<theform.startTime.value)	{
			    alert("结束时间不能小于开始时间，请选择！");
			    theform.endTime.focus();
			    return (false);
			  }
			alert("如果数据量较大，导出可能需要较长时间，请稍候！:)");
			  theform.submit();
			  return (true); 
			
		}
		</script>
	</head>
	<body>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" style="">
			<tr>
			    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
			    <td valign="top" background="images/content-bg.gif">
			    	<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				      <tr>
				        <td height="31"><div class="titlebt">统计查询平台</div></td>
				      </tr>
			    	</table>
			    </td>
			    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
		  </tr>
		  
		  <tr >
			<td valign="middle" background="images/mail_leftbg.gif">&nbsp;
				
			</td>
			<td valign="top" bgcolor="#F7F8F9" align="center">
				
				<fieldset class="fs">
					<legend>支撑工作明细导出</legend>
					<s:form action="Excel" method="post" id="detailQueryForm">
					<table width="80%" border="0" frame="box" cellspacing="0" style="margin:10px 0;" class="contentTable" >
						
						<tr>
						    <td width="15%" height="35px" bgcolor="#FFFFFF" align="right" class="table_content"><strong>开始时间：</strong></td>
						    <td colspan="2" width="35%" height="35px" bgcolor="#FFFFFF" align="left" class="table_content">
						    	<s:textfield id="startTime" name="startTime" cssStyle="width:60%;margin-left:5px" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})">
						    	</s:textfield>
						    	<font color="red">*必填</font>
						    </td>	
						    <td width="15%" height="35px" bgcolor="#FFFFFF" align="right" class="table_content"><strong>结束时间：</strong></td>
						    <td colspan="2" width="35%" height="35px" bgcolor="#FFFFFF" align="left" class="table_content">
						    	<s:textfield id="endTime" name="endTime"  cssStyle="width:60%;margin-left:5px" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})">
						    	</s:textfield>
						    	<font color="red">*必填</font>
						    </td>				    
						</tr>
						
						<tr>
						    <td colspan="6" height="25px" bgcolor="#FFFFFF" class="table_content">
						    	<div class="new"><img alt="导出到Excel" src="images/excel.gif"><a href="#" onclick="javascript:ExportExcel(detailQueryForm);return false;" >导出到EXCEL</a></div>
						    </td>					    
						</tr>					  
					</table>
					</s:form>
				</fieldset>
				<!-- 
				<fieldset class="fs">
					<legend>工作量查询</legend>
					<s:form action="Admin!queryByDate.action" method="post" id="workloadQueryForm">
					<table width="80%" border="0" frame="box" cellspacing="0" style="margin:10px 0;" class="contentTable" >
						
						<tr>
						    <td width="15%" height="35px" bgcolor="#FFFFFF" align="right" class="table_content"><strong>开始时间：</strong></td>
						    <td colspan="2" width="35%" height="35px" bgcolor="#FFFFFF" align="left" class="table_content">
						    	<s:textfield id="startTime" name="startTime" cssStyle="width:60%;margin-left:5px" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})">
						    	</s:textfield>
						    	<font color="red">*必填</font>
						    </td>	
						    <td width="15%" height="35px" bgcolor="#FFFFFF" align="right" class="table_content"><strong>结束时间：</strong></td>
						    <td colspan="2" width="35%" height="35px" bgcolor="#FFFFFF" align="left" class="table_content">
						    	<s:textfield id="endTime" name="endTime"  cssStyle="width:60%;margin-left:5px" onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})">
						    	</s:textfield>
						    	<font color="red">*必填</font>
						    </td>				    
						</tr>
						
						<tr>
						    <td width="15%" height="35px" bgcolor="#FFFFFF" align="right" class="table_content"><strong>人员：</strong></td>
						    <td colspan="5" height="35px" bgcolor="#FFFFFF" align="left" class="table_content">
						    	 <s:select 
									   name="name"
								       id="name"
								       headerKey="-1" headerValue="请选择"
								       listKey="name"
								       listValue="name"
								       list="userList"
								       theme="simple"
								       required="true" 
								       cssStyle="width:40%;margin-left:5px"
								       />
						    </td>					    
						</tr>
						<tr>
						    <td colspan="6" height="25px" bgcolor="#FFFFFF" class="table_content">
						    	<div class="new" style="margin-right:20px;"><img alt="查询" src="images/pic7.gif"><a href="#" onclick="javascript:check(workloadQueryForm);return false;">给我查@_@</a></div>
						    </td>					    
						</tr>					  
					</table>
					</s:form>
				</fieldset>
				 -->
			</td>
			<td background="images/mail_rightbg.gif">&nbsp;
				
			</td>
			</tr>
			<tr>
			    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
			    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
			    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
		  	</tr>
		</table>
	</body>

</html>
